e = 0
at = 0
n = int(input())
a= int(input())
b = int(input())
c = int(input())
s = n/b
if s/a >=1:
    e = (s//a)*c
f=1/b
at=s+e+f
print(at)
    

